package as.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import as.entity.Account;

public class AccountDAO extends HibernateDaoSupport {
	/*public boolean add(Account account){
		this.getHibernateTemplate().save(account);
		return true ;
		 
	} */

	public Account get(String accountId){
		
		Account account =(Account) this.getHibernateTemplate().get(Account.class, accountId);
		
		return account;
	}
	public boolean update(Account account){
		try{
		this.getHibernateTemplate().update(account);
		return true;
		}catch(Exception e){
			e.printStackTrace();
			return false;
		}
		
		
	}
}
